518eacb516ff9ab6a98149c254728056eec80778,api/src/test/java/org/apache/commons/rdf/api/AbstractRDFTermFactoryTest.java,AbstractRDFTermFactoryTest,testCreateTripleBnodeTriple,#,367
Before Change
Literal object;
Triple triple;
try {
subject = factory.createBlankNode();
predicate = factory.createIRI("http://example.com/pred");
object = factory.createLiteral("Example", "en");
triple = factory.createTriple(subject, predicate, object);
} catch (UnsupportedOperationException ex) {
Assume.assumeNoException(ex);
return;
After Change
@Test
public void testCreateTripleBnodeTriple() {
BlankNode subject = factory.createBlankNode();
IRI predicate = factory.createIRI("http://example.com/pred");
Literal object = factory.createLiteral("Example", "en");
Triple triple = factory.createTriple(subject, predicate, object);
// bnode equivalence should be OK as we used the same
// factory and have not yet inserted Triple into a Graph